package com.py.custom.business.demo.core.service;

import com.py.custom.business.demo.core.service.model.StudentDTO;
import com.py.custom.business.demo.protocol.request.StudentRequest;

import javax.validation.Valid;
import java.util.List;

/**
 * description：
 */
public interface StudentService {

    /**
     * 获取学生集合
     *
     * @param studentRequest
     * @return
     */
    @Valid List<StudentDTO> getStudentList(@Valid StudentRequest studentRequest);

    /**
     * 保存学生
     *
     * @param studentRequest
     * @return
     */
    boolean saveStudent(@Valid StudentRequest studentRequest);
}
